package com.qcby.mycommunity_003.mapper;

import com.qcby.mycommunity_003.entity.Person;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2024-03-27
 */
@Mapper
public interface PersonMapper extends BaseMapper<Person> {
   @Select({"select count(*) from person where person.community_id=#{communityId}"})
    Integer getCountBycomminityId(Integer communityId);
}
